package com.dxb.test.generic;

import java.util.ArrayList;

/**
 * ClassName：com.dxb.test.generic.泛型插除 <br>
 * Description：TODO <br>
 *
 * @author 戴晓波 <br>
 * Date 2022/2/11/011 16:50 <br>
 * @version v1.0 <br>
 */
public class 泛型插除 {
    public static void main(String[] args) throws Exception {
        ArrayList<Integer> arrayList = new ArrayList<>();
        arrayList.add(1);
        arrayList.getClass().getMethod("add", Object.class).invoke(arrayList, "a");
        System.out.println(arrayList.get(0));
        System.out.println(arrayList.get(1));
        Integer integer = arrayList.get(1);
        System.out.println(integer);
    }
}
